package com.ntschy.taizhou.threaddemo;

public class UserInfoService {

    public UserInfo getUserInfo(Long userId) throws InterruptedException {
        Thread.sleep(5000);//模拟调用耗时
        System.out.println("---UserInfoService-");
        return new UserInfo("666", "捡田螺的小男孩"); //一般是查数据库，或者远程调用返回的
    }


}
